package com.nny.alarm.edit.adapter;

import android.content.Context;
import android.content.res.Resources;

import com.nny.alarm.edit.DialAdapter;
import com.uxwine.skin.Skin;
import com.nny.alarm.R;

public class CycleAdapter extends DialAdapter
{
	String[] mData;
	
	public CycleAdapter(Context ctx)
	{
		super(ctx);
		final Resources r = mCtx.getResources();
		mData = r.getStringArray(R.array.alerm_cycle);
		mnMax = 7;
	}
	
	@Override
	public String getMarkText(int index)
	{
		return mData[index];
	}

	@Override
	public int getMarkCount()
	{
		return mData.length;
	}

	@Override
	public int getBtnDrawable()
	{
		return Skin.getDrawable(mCtx, "dial_nav_cycle");
	}

	@Override
	public int getDialDrawable()
	{
		return Skin.getDrawable(mCtx, "dial_mark_8");
	}

	@Override
	public long getValue(int position)
	{
		return position;
	}
}
